<h1>Courses Taken</h1>

	<?php echo form_open('encoder/subjectsTaken');?>
	
	<table>
		<tr>
			<td width="140px"><?php echo form_label('Student Number:');?></td>
			<td>
				<?php echo $stdno; ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Year (yyyy-yyyy): ', 'year');?></td>
			<td>
				<?php 
					$data = array(
						'name'        => 'year',
						'id'          => 'name',
						'value'       => set_value('year'),
						'maxlength'   => '9',
						'size'        => '11',
						'style'       => 'width:90%',
					);
					echo form_input($data);
				?>
			</td>
			<td>
				<?php echo form_error('year'); ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Semester/Summer: ', 'sem');?></td>
			<td>
				<?php
					$options = array(
								'1st' => '1st',
								'2nd' => '2nd',
								'Summer' => 'Summer',
							);
					echo form_dropdown('sem',$options);
				?>
			</td>
		</tr>
	</table>
	
	</br>
	<table>
		<tr>
			<td>
				<?php
					$options = array(
								'1' => 'Add Courses Taken This Sem/Summer',
								'2' => 'Edit Courses Taken This Sem/Summer',
							);
					echo form_dropdown('option',$options);
				?>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo form_error('optionform'); ?>
			</td>
		</tr>
	</table>
</br>
<!-- Submit Button -->
<?php
	$data = array(
		'value' => 'Proceed',
	); 
	echo form_submit($data);
?>
<?php echo form_close(); ?>
	
<!-- Cancel Button -->
<?php 
	echo form_open('encoder/view');
		
	$data = array(
		'value' => 'Cancel',
	); 
	echo form_submit($data);
	echo form_close();
?>
<?php echo anchor('encoder/index','Back to Home Page');?> </br>
<?php echo anchor('encoder/logout','Logout');?>